home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gSearchObj
- clickedLine = the mouseLine
- kListSprite = 4
- xMember = the member of sprite kListSprite
- title = string(line clickedLine of field xMember)
- TitleChar1to2 = char 1 to 2 of title
- if (clickedLine > 0) and (stripPunct(title) <> EMPTY) and (TitleChar1to2 <> "— ") then
- scrollbarObj = getScrollbarObj(gSearchObj)
- oldSelection = getSelection(scrollbarObj)
- setSelection(scrollbarObj, clickedLine)
- if the doubleClick or (clickedLine = oldSelection) then
- cursor(4)
- tell the stage
- findAndOpenMediaWindow(clickedLine, #title)
- end tell
- cursor(-1)
- end if
- end if
- end
-